package com.ruoyi.bus.controller.front;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.bus.domain.CustAddr;
import com.ruoyi.bus.domain.NetworkInfo;
import com.ruoyi.bus.service.INetworkInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 网点信息
 */
@Controller
@RequestMapping("/api/network")
public class FrontNetworkController {
    @Autowired
    private INetworkInfoService networkInfoService;

    @RequestMapping("/list")
    @ResponseBody
    public List<NetworkInfo> getList(){
        return networkInfoService.list();
    }
}
